package com.george.shiro.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
 * <p>
 *
 * </p>
 *
 * @author GeorgeChan 2019/5/21 22:27
 * @version 1.0
 * @since jdk1.8
 */
@Configuration
@ConfigurationProperties(prefix = "spring.redis")
@Data
@Order(-1)
public class RedisProperties {
    private Integer database;
    private String host;
    private Integer port;
    private String password;
    private Integer timeout;
    /**
     * 默认30天 = 2592000s
     */
    private Integer expire = 2592000;
}
